package com.mylibraryapplication;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.mylibraryapplication.base.BaseFragment;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * @author yinsujun  Created at 2016/7/27 18:18
 */
public class TabFragment extends BaseFragment {
    @Bind(R.id.tab_tv_detail)
    TextView tabTvDetail;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_tab_one, container, false);
        ButterKnife.bind(this, view);
        tabTvDetail= (TextView) view.findViewById(R.id.tab_tv_detail);
        Bundle arguments = getArguments();
        String title=arguments.getString("title");
        tabTvDetail.setText(title);
        return view;
    }
}
